MAP_GetCommModule
Reads the IO map of the communication module
Contents
Syntax
map = MAP_GetCommModule()
Description
map = MAP_GetCommModule() returns the IO map of the communication module. The return value map is a struct variable. It contains all communication module information.
Output:
map.PFunc % ?
map.PFuncTwo % ?
map.BTPort % 1x4 cell array contains Bluetooth device information of each NXT Bluetooth port (i = 0..3)
map.BTPort{i}.BtDeviceTableName % name of the Bluetooth device
map.BTPort{i}.BtDeviceTableClassOfDevice % class of the Bluetooth device
map.BTPort{i}.BtDeviceTableBdAddr % MAC address of the Bluetooth device
map.BTPort{i}.BtDeviceTableDeviceStatus % status of the Bluetooth device
map.BTPort{i}.BtConnectTableName % name of the connected Bluetooth device
map.BTPort{i}.BtConnectTableClassOfDevice % class of the connected Bluetooth device
map.BTPort{i}.BtConnectTablePinCode % pin code of the connected Bluetooth device
map.BTPort{i}.BtConnetTableBdAddr % MAC address of the connected Bluetooth device
map.BTPort{i}.BtConnectTableHandleNr % handle nr of the connected Bluetooth device
map.BTPort{i}.BtConnectTableStreamStatus % stream status of the connected Bluetooth device
map.BTPort{i}.BtConnectTableLinkQuality % link quality of the connected Bluetooth device
map.BrickDataName % name of the NXT brick
map.BrickDataBluecoreVersion % Bluecore version number
map.BrickDataBdAddr % MAC address of the NXT brick
map.BrickDataBtStateStatus % Bluetooth state status
map.BrickDataBtHwStatus % NXT hardware status
map.BrickDataTimeOutValue % time out value
map.BtDeviceCnt % number of devices defined within the Bluetooth device table
map.BtDeviceNameCnt % number of devices defined within the Bluetooth device table (usually equal to BtDeviceCnt)
map.HsFlags % High Speed flags
map.HsSpeed % High Speed speed
map.HsState % High Speed state
map.HsSpeed % High Speed speed
map.UsbState % USB state
Examples
map = MAP_GetCommModule();
See also
Signature
- Author: Alexander Behrens (see AUTHORS)
- Date: 2008/05/23
- Copyright: 2007-2008, RWTH Aachen University